package com.songlanyun.modules.opus.controller.api;

import com.songlanyun.common.utils.R;
import com.songlanyun.modules.account.controller.common.AbstractApiController;
import com.songlanyun.modules.opus.entity.OpusThemeSystem;
import com.songlanyun.modules.opus.service.OpusThemeSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

//import org.apache.shiro.authz.annotation.RequiresPermissions;


/**
 * 作品主题表
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2021-01-13 16:35:02
 */
@RestController
@RequestMapping("api/opus/theme")
public class OpusThemeSystemApiController extends AbstractApiController {
    @Autowired
    private OpusThemeSystemService opusThemeSystemService;

    /**
     * 话题列表
     */
    @RequestMapping("/list")
    //@RequiresPermissions("opus:systembbstheme:list")
    public R list(){
        List<OpusThemeSystem> list = opusThemeSystemService.loadList();
        return R.ok().put("list", list);
    }




}
